<html>
<head>
<TITLE>Internal System</TITLE>
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
<LINK href="../css/style.css" type=text/css rel=stylesheet>
</head>
{literal}
<script language="javascript" src="../js/Validation.js" type="text/JavaScript"></script>
<SCRIPT language=JavaScript>
var valid = new Validation();
function checkForm(){
	var theform = window.document.form1
	
	if (valid.isEmpty("name","manufacturer name")){
		return false;
	}else{
		return true;
	}
}
</script>
{/literal}
<body bgcolor="#FFFFFF" text="#000000">
<form name="form1" method="post" action="">
  <table width="100%" cellspacing="0" cellpadding="2">
    <tr bgcolor="#E4E4E4"> 
      <td  width="20%">&nbsp;Edit Customer</td>
      <td  width="70%"><font color="#FF0000">&nbsp;{$error_message}</font></td>
      <td  width="10%" align="right">&nbsp;<A href="{$backurl}" target="_self">Back</A>&nbsp;&nbsp;</td>
    </tr>

    <tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'"> 
      <td height="30" align="right">First Name:</td>
      <td colspan="2"> 
        &nbsp;&nbsp;
        <input name="firstname" type="text" id="firstname" value="{$firstname}" maxlength="20">
      &nbsp; <font color="#FF0000"> *</font> </td>
    </tr>
	
	<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'"> 
      <td height="30" align="right">Last Name:</td>
      <td colspan="2"> 
        &nbsp;&nbsp;
        <input name="lastname" type="text" id="lastname" value="{$lastname}" size="40" maxlength="80"></td>
    </tr>
    <tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'"> 
      <td height="30" align="right">Email:</td>
      <td colspan="2"> 
        &nbsp;&nbsp;
        <input name="email" type="text" id="email" value="{$email}" size="40" maxlength="80"></td>
    </tr>
    
    <tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'"> 
      <td height="30" align="right">Company name:</td>
      <td colspan="2"> 
        &nbsp;&nbsp;
        <input name="company" type="text" id="company" value="{$company}" size="40" maxlength="80"></td>
    </tr>
    
    <tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'"> 
      <td height="30" align="right">Street Address:</td>
      <td colspan="2"> 
        &nbsp;&nbsp;
        <input name="street" type="text" id="street" value="{$street}" size="40" maxlength="80"></td>
    </tr>
    
    <tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'"> 
      <td height="30" align="right">Post Code:</td>
      <td colspan="2"> 
        &nbsp;&nbsp;
        <input name="postcode" type="text" id="postcode" value="{$postcode}" size="40" maxlength="80"></td>
    </tr>
    
    <tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'"> 
      <td height="30" align="right">City:</td>
      <td colspan="2"> 
        &nbsp;&nbsp;
        <input name="city" type="text" id="city" value="{$city}" size="40" maxlength="80"></td>
    </tr>
    
    <tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'"> 
      <td height="30" align="right">State:</td>
      <td colspan="2"> 
        &nbsp;&nbsp;
        <input name="state" type="text" id=""state"" value="{$state}" size="40" maxlength="80"></td>
    </tr>
    
    <tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'"> 
      <td height="30" align="right">Country:</td>
      	<td colspan="2"> 
        &nbsp;&nbsp;
        	<select name="countryid" style="height:22px; margin-top:0px;">
  				{html_options options=$arrCountries selected=$countryid}
			</select>
		</td>
    </tr>
    
    <tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'"> 
      <td height="30" align="right">Telephone Number:</td>
      <td colspan="2"> 
        &nbsp;&nbsp;
        <input name="telephone" type="text" id="telephone" value="{$telephone}" size="40" maxlength="80"></td>
    </tr>
    
    <tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'"> 
      <td height="30" align="right">Fax Number:</td>
      <td colspan="2"> 
        &nbsp;&nbsp;
        <input name="fax" type="text" id="fax" value="{$fax}" size="40" maxlength="80"></td>
    </tr>
    
    <tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'"> 
      <td height="30" align="right">Newsletter:</td>
      <td colspan="2"> 
        &nbsp;&nbsp;
        <select name="newsletter">
        {html_options options=$arrNewsletter selected=$newsletter}
		</select>
	</td>
    </tr>
    <tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
      <td height="23"></td>
      <td height="23" colspan="2">
        &nbsp;&nbsp;
        <input type="submit" name="Submit" value="Submit" onClick="return checkForm()">
        <input type="reset" name="Reset" value="Reset">
        <input name="menuGid" type="hidden" id="menuGid" value="{$menuGid}">
      <input name="menuid" type="hidden" id="menuid" value="{$menuid}">
      <input name="id" type="hidden" id="id" value="{$id}">
      <input name="backurl" type="hidden" id="backurl" value="{$backurl}"></td>
    </tr>
  </table>
</form>
</body>
</html>